From: Alejandro PiƱeiro Date: Fri, 21 Mar 2014 11:49:51 +0000 (+0100) Subject: a11y: setting accessible role and label for windows at the overview X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2563 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=df305314c10ac18c77c6707a4f5e50bd41d4adcd;p=gnome-shell.git a11y: setting accessible role and label for windows at the overview https://bugzilla.gnome.org/show_bug.cgi?id=726670 --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index a4b0c2599..f2521c639 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -8,6 +8,8 @@ const Meta = imports.gi.Meta; const Pango = imports.gi.Pango; const Shell = imports.gi.Shell; const St = imports.gi.St; +const Atk = imports.gi.Atk; + const Signals = imports.signals; const DND = imports.ui.dnd; @@ -121,6 +123,7 @@ const WindowClone = new Lang.Class({ // the hierarchy that is sized to only the visible portion. this.actor = new St.Widget({ reactive: true, can_focus: true, + accessible_role: Atk.Role.PUSH_BUTTON, layout_manager: new WindowCloneLayout() }); this.actor.add_child(this._windowClone); @@ -424,6 +427,7 @@ const WindowOverlay = new Lang.Class({ text: metaWindow.title }); title.clutter_text.ellipsize = Pango.EllipsizeMode.END; title._spacing = 0; + windowClone.actor.label_actor = title; this._updateCaptionId = metaWindow.connect('notify::title', Lang.bind(this, function(w) {